package view;

import javax.swing.JFrame;
import java.awt.Dimension;
import javax.swing.JPanel;
import java.awt.GridBagLayout;
import java.awt.FlowLayout;
import java.awt.BorderLayout;
import javax.swing.JButton;
import javax.swing.BoxLayout;
import java.awt.GridBagConstraints;
import javax.swing.BorderFactory;
import javax.swing.border.BevelBorder;
import java.awt.Insets;
import javax.swing.JList;
import javax.swing.JTextField;
import javax.swing.JLabel;
import javax.swing.JTable;
import javax.swing.JMenu;
import java.awt.event.KeyEvent;


public class PrincipalJanela extends JFrame{

	private JPanel jPanel = null;
	private JPanel panelPrincipal = null;
	private JButton jButton = null;
	private JButton jButton1 = null;
	private JButton jButton2 = null;
	private JButton jButton3 = null;
	private JButton jButton4 = null;
	private JPanel panelCliente = null;
	private JList jList = null;
	private JTextField jTextField = null;
	private JButton jButton5 = null;
	private JLabel jLabel = null;
	private JTable jTable = null;
	private JMenu jMenu = null;
	private JButton jButton6 = null;
	private JButton jButton7 = null;
	/**
	 * This method initializes 
	 * 
	 */
	public PrincipalJanela() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 */
	
	private void initialize() {
        this.setSize(new Dimension(620, 621));
        this.setContentPane(getJPanel());
	}

	/**
	 * This method initializes jPanel	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getJPanel() {
		if (jPanel == null) {
			GridBagConstraints gridBagConstraints5 = new GridBagConstraints();
			gridBagConstraints5.gridx = 0;
			gridBagConstraints5.ipadx = 40;
			gridBagConstraints5.ipady = 40;
			gridBagConstraints5.insets = new Insets(30, 0, 30, 0);
			gridBagConstraints5.gridy = 1;
			GridBagConstraints gridBagConstraints4 = new GridBagConstraints();
			gridBagConstraints4.gridx = 0;
			gridBagConstraints4.ipadx = 0;
			gridBagConstraints4.ipady = 0;
			gridBagConstraints4.insets = new Insets(5, 5, 5, 5);
			gridBagConstraints4.anchor = GridBagConstraints.NORTH;
			gridBagConstraints4.fill = GridBagConstraints.BOTH;
			gridBagConstraints4.gridheight = 1;
			gridBagConstraints4.gridwidth = 1;
			gridBagConstraints4.weightx = 2.0D;
			gridBagConstraints4.weighty = 2.0D;
			gridBagConstraints4.gridy = 0;
			jPanel = new JPanel();
			jPanel.setLayout(new GridBagLayout());
			jPanel.setPreferredSize(new Dimension(0, 0));
			//jPanel.add(getJPanelCliente(), gridBagConstraints4);
			//jPanel.add(getJPanelPrincipal(), gridBagConstraints4);
			jPanel.add(getJButton4(), gridBagConstraints5);
			this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		}
		return jPanel;
	}

	/**
	 * This method initializes jPanel1	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getJPanelPrincipal() {
		if (panelPrincipal == null) {
			GridBagConstraints gridBagConstraints3 = new GridBagConstraints();
			gridBagConstraints3.gridx = 3;
			gridBagConstraints3.gridheight = 0;
			gridBagConstraints3.gridwidth = 0;
			gridBagConstraints3.weightx = 0.0D;
			gridBagConstraints3.weighty = 2.0D;
			gridBagConstraints3.ipadx = 40;
			gridBagConstraints3.ipady = 40;
			gridBagConstraints3.insets = new Insets(5, 5, 5, 5);
			gridBagConstraints3.gridy = 0;
			GridBagConstraints gridBagConstraints2 = new GridBagConstraints();
			gridBagConstraints2.gridx = 2;
			gridBagConstraints2.ipadx = 40;
			gridBagConstraints2.ipady = 40;
			gridBagConstraints2.insets = new Insets(5, 5, 5, 5);
			gridBagConstraints2.gridy = 0;
			GridBagConstraints gridBagConstraints1 = new GridBagConstraints();
			gridBagConstraints1.gridx = 1;
			gridBagConstraints1.insets = new Insets(5, 5, 5, 5);
			gridBagConstraints1.ipadx = 40;
			gridBagConstraints1.ipady = 40;
			gridBagConstraints1.gridy = 0;
			GridBagConstraints gridBagConstraints = new GridBagConstraints();
			gridBagConstraints.gridx = 0;
			gridBagConstraints.insets = new Insets(5, 5, 5, 5);
			gridBagConstraints.ipadx = 40;
			gridBagConstraints.ipady = 40;
			gridBagConstraints.gridy = 0;
			panelPrincipal = new JPanel();
			panelPrincipal.setLayout(new GridBagLayout());
			panelPrincipal.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
			panelPrincipal.add(getJButton(), gridBagConstraints);
			panelPrincipal.add(getJButton1(), gridBagConstraints1);
			panelPrincipal.add(getJButton2(), gridBagConstraints2);
			panelPrincipal.add(getJButton3(), gridBagConstraints3);
		}
		return panelPrincipal;
	}

	/**
	 * This method initializes jButton	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButton() {
		if (jButton == null) {
			jButton = new JButton();
			jButton.setText("Cliente");
			jButton.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.out.println("actionPerformed()"); // TODO Auto-generated Event stub actionPerformed()
				}
			});
		}
		return jButton;
	}

	/**
	 * This method initializes jButton1	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButton1() {
		if (jButton1 == null) {
			jButton1 = new JButton();
			jButton1.setText("Banco");
		}
		return jButton1;
	}

	/**
	 * This method initializes jButton2	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButton2() {
		if (jButton2 == null) {
			jButton2 = new JButton();
			jButton2.setText("Operac");
		}
		return jButton2;
	}

	/**
	 * This method initializes jButton3	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButton3() {
		if (jButton3 == null) {
			jButton3 = new JButton();
			jButton3.setText("Config");
		}
		return jButton3;
	}

	/**
	 * This method initializes jButton4	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButton4() {
		if (jButton4 == null) {
			jButton4 = new JButton();
			jButton4.setText("X");
		}
		return jButton4;
	}

	/**
	 * This method initializes jPanel1	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getJPanelCliente() {
		if (panelCliente == null) {
			GridBagConstraints gridBagConstraints13 = new GridBagConstraints();
			gridBagConstraints13.gridx = 2;
			gridBagConstraints13.insets = new Insets(0, 5, 2, 5);
			gridBagConstraints13.ipadx = 0;
			gridBagConstraints13.ipady = 0;
			gridBagConstraints13.anchor = GridBagConstraints.EAST;
			gridBagConstraints13.gridy = 4;
			GridBagConstraints gridBagConstraints12 = new GridBagConstraints();
			gridBagConstraints12.gridx = 0;
			gridBagConstraints12.insets = new Insets(0, 5, 2, 5);
			gridBagConstraints12.anchor = GridBagConstraints.WEST;
			gridBagConstraints12.ipadx = 0;
			gridBagConstraints12.ipady = 0;
			gridBagConstraints12.weighty = 0.0D;
			gridBagConstraints12.gridwidth = 1;
			gridBagConstraints12.gridy = 4;
			GridBagConstraints gridBagConstraints11 = new GridBagConstraints();
			gridBagConstraints11.gridx = 0;
			gridBagConstraints11.anchor = GridBagConstraints.NORTHWEST;
			gridBagConstraints11.gridy = 0;
			GridBagConstraints gridBagConstraints10 = new GridBagConstraints();
			gridBagConstraints10.fill = GridBagConstraints.BOTH;
			gridBagConstraints10.gridy = 3;
			gridBagConstraints10.weightx = 1.0;
			gridBagConstraints10.weighty = 1.0;
			gridBagConstraints10.anchor = GridBagConstraints.CENTER;
			gridBagConstraints10.gridwidth = 3;
			gridBagConstraints10.insets = new Insets(5, 5, 5, 5);
			gridBagConstraints10.ipady = 250;
			gridBagConstraints10.gridheight = 1;
			gridBagConstraints10.ipadx = 500;
			gridBagConstraints10.gridx = 0;
			GridBagConstraints gridBagConstraints9 = new GridBagConstraints();
			gridBagConstraints9.gridx = 2;
			gridBagConstraints9.anchor = GridBagConstraints.NORTH;
			gridBagConstraints9.fill = GridBagConstraints.HORIZONTAL;
			gridBagConstraints9.insets = new Insets(5, 5, 5, 5);
			gridBagConstraints9.ipadx = 40;
			gridBagConstraints9.ipady = 40;
			gridBagConstraints9.gridy = 1;
			jLabel = new JLabel();
			jLabel.setText("Fotinha");
			GridBagConstraints gridBagConstraints8 = new GridBagConstraints();
			gridBagConstraints8.gridx = 2;
			gridBagConstraints8.ipadx = 20;
			gridBagConstraints8.ipady = 0;
			gridBagConstraints8.anchor = GridBagConstraints.NORTH;
			gridBagConstraints8.insets = new Insets(5, 5, 5, 5);
			gridBagConstraints8.fill = GridBagConstraints.HORIZONTAL;
			gridBagConstraints8.gridy = 2;
			GridBagConstraints gridBagConstraints7 = new GridBagConstraints();
			gridBagConstraints7.fill = GridBagConstraints.HORIZONTAL;
			gridBagConstraints7.gridy = 1;
			gridBagConstraints7.weightx = 1.0;
			gridBagConstraints7.anchor = GridBagConstraints.SOUTH;
			gridBagConstraints7.insets = new Insets(5, 5, 5, 70);
			gridBagConstraints7.ipadx = 130;
			gridBagConstraints7.gridx = 1;
			GridBagConstraints gridBagConstraints6 = new GridBagConstraints();
			gridBagConstraints6.fill = GridBagConstraints.HORIZONTAL;
			gridBagConstraints6.gridy = 1;
			gridBagConstraints6.weightx = 1.0;
			gridBagConstraints6.weighty = 1.0;
			gridBagConstraints6.ipadx = 0;
			gridBagConstraints6.ipady = 18;
			gridBagConstraints6.insets = new Insets(5, 40, 5, 5);
			gridBagConstraints6.anchor = GridBagConstraints.SOUTHEAST;
			gridBagConstraints6.gridx = 0;
			panelCliente = new JPanel();
			panelCliente.setLayout(new GridBagLayout());
			panelCliente.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
			panelCliente.add(getJList(), gridBagConstraints6);
			panelCliente.add(getJTextField(), gridBagConstraints7);
			panelCliente.add(getJButton5(), gridBagConstraints8);
			panelCliente.add(jLabel, gridBagConstraints9);
			panelCliente.add(getJTable(), gridBagConstraints10);
			panelCliente.add(getJMenu(), gridBagConstraints11);
			panelCliente.add(getJButton6(), gridBagConstraints12);
			panelCliente.add(getJButton7(), gridBagConstraints13);
		}
		return panelCliente;
	}

	/**
	 * This method initializes jList	
	 * 	
	 * @return javax.swing.JList	
	 */
	private JList getJList() {
		if (jList == null) {
			jList = new JList();
		}
		return jList;
	}
	
	private JTextField getJTextField() {
		if (jTextField == null) {
			jTextField = new JTextField();
		}
		return jTextField;
	}

	/**
	 * This method initializes jButton5	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButton5() {
		if (jButton5 == null) {
			jButton5 = new JButton();
			jButton5.setText("Adicionar");
		}
		return jButton5;
	}

	/**
	 * This method initializes jTable	
	 * 	
	 * @return javax.swing.JTable	
	 */
	public JTable getJTable() {
		if (jTable == null) {
			jTable = new JTable();
			jTable.setPreferredSize(new Dimension(450, 80));
		}
		return jTable;
	}

	/**
	 * This method initializes jMenu	
	 * 	
	 * @return javax.swing.JMenu	
	 */
	private JMenu getJMenu() {
		if (jMenu == null) {
			jMenu = new JMenu();
		}
		return jMenu;
	}

	/**
	 * This method initializes jButton6	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButton6() {
		if (jButton6 == null) {
			jButton6 = new JButton();
			jButton6.setText("<< anterior");
			jButton6.setMnemonic(KeyEvent.VK_UNDEFINED);
			jButton6.setSize(new Dimension(110, 20));
		}
		return jButton6;
	}

	/**
	 * This method initializes jButton7	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButton7() {
		if (jButton7 == null) {
			jButton7 = new JButton();
			jButton7.setText("próximo >>");
			jButton7.setSize(new Dimension(110, 20));
		}
		return jButton7;
	}
	
		
}  //  @jve:decl-index=0:visual-constraint="32,9"
